package com.jf.thread;

public class GetThread extends Thread{
    private BaoZiPu bzp;
    public GetThread(BaoZiPu bzp){
        this.bzp = bzp;
    }

    @Override
    public void run() {
        while (true){
            if(bzp.count>=100){
                System.out.println("收摊了");
                break;
            }
            System.out.println("我卖出一个："+bzp.getBaozi());
        }
    }
}
